package ctrs.dao;

import ctrs.bean.Knowledge;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface KnowledgeDao {
    public List<Knowledge> getAllKnowledge(@Param("knowledgeName") String knowledgeName);
    public int addKnowledge(Knowledge knowledge);
    public Knowledge getUpdateKnowledge(String knowledgeId);
    public int editKnowledge(Knowledge knowledge);
    public int deleteKnowledge(String knowledgeId);
}
